/*
 * @Description:
 * @Autor: lcz
 * @LastEditors: lcz
 * @LastEditTime: 2024-01-16 14:23:43
 */
import { useState } from 'react';

const useGetFieldsValue = () => {
  const [hasValue, setHasValue] = useState(false);
  const handleGetHasValue = (allValues: Record<string, any>) => {
    setHasValue(Object.values(allValues)?.length > 0);
  };

  return {
    hasValue,
    handleGetHasValue,
  };
};
export default useGetFieldsValue;
